import request from '@/utils/request'
// 添加预约
export function addReservation(data) {
  return request({
    url: '/api/reservation_add',
    method: 'POST',
    data,
  })
}
// 预约来元
export function getResSurce(data) {
  return request({
    url: '/api/get_res_source',
    method: 'POST',
    data,
  })
}
// 预约列表
export function getReservationList(data) {
  return request({
    url: '/api/reservation_list',
    method: 'POST',
    data,
  })
}
// 岗位列表
export function getPartakeGroupList(data) {
  return request({
    url: '/api/get_partake_group_list',
    method: 'POST',
    data,
  })
}

// 医生列表
export function getSchedulingUserList(data) {
  return request({
    url: '/api/get_scheduling_user_list',
    method: 'POST',
    data,
  })
}

// 医生列表
export function getSchedulingList(data) {
  return request({
    url: '/api/get_scheduling_list',
    method: 'POST',
    data,
  })
}

// 预约详情
export function reservationDetail(data) {
  return request({
    url: '/api/reservation_detail',
    method: 'POST',
    data,
  })
}

// 取消原因枚举
export function cancelReason(data) {
  return request({
    url: '/api/cancel_reason',
    method: 'POST',
    data,
  })
}

// 取消预约
export function cancelReservation(data) {
  return request({
    url: '/api/cancel_reservation',
    method: 'POST',
    data,
  })
}

// 支付预约金
export function reservationPay(data) {
  return request({
    url: '/api/reservation_pay',
    method: 'POST',
    data,
  })
}

// /排课

// 查找孩子所购买的课程
export function getCustomerCard(data) {
  return request({
    url: '/api/get_customer_card',
    method: 'POST',
    data,
  })
}

// 查找课程所对应的老师
export function getCourseUser(data) {
  return request({
    url: '/api/get_course_user',
    method: 'POST',
    data,
  })
}

//找老师所对应的排班
export function getUserScheduling(data) {
  return request({
    url: '/api/get_user_scheduling',
    method: 'POST',
    data,
  })
}

//新增排课

export function courseAdd(data) {
  return request({
    url: '/api/course_add',
    method: 'POST',
    data,
  })
}

//排课list

export function courseList(data) {
  return request({
    url: '/api/course_list',
    method: 'POST',
    data,
  })
}
// 请假
export function courseException(data) {
  return request({
    url: '/api/course_exception',
    method: 'POST',
    data,
  })
}

// 调课日期
export function getWeekDate(data) {
  return request({
    url: '/api/get_week_date',
    method: 'POST',
    data,
  })
}

// 调课事件
export function courseAdjust(data) {
  return request({
    url: '/api/course_adjust',
    method: 'POST',
    data,
  })
}

// 测试新排课list
export function course_scheduling_list(data) {
  return request({
    url: '/api/course_scheduling_list',
    method: 'POST',
    data,
  })
}

// 查询调课老师list
export function getAdjustCourseUser(data) {
  return request({
    url: '/api/get_adjust_course_user',
    method: 'POST',
    data,
  })
}

// 排课详情
export function courseDetail(data) {
  return request({
    url: '/api/course_detail',
    method: 'POST',
    data,
  })
}

// 排课修改
export function courseEdit(data) {
  return request({
    url: '/api/course_edit',
    method: 'POST',
    data,
  })
}

// 划课记录
export function courseConsume(data) {
  return request({
    url: '/api/course_consume',
    method: 'POST',
    data,
  })
}

// 划课操作
export function courseUsed(data) {
  return request({
    url: '/api/course_used',
    method: 'POST',
    data,
  })
}

// 接诊
export function checkIn(data) {
  return request({
    url: '/api/check_in',
    method: 'POST',
    data,
  })
}
// 接待列表
export function receptionList(data) {
  return request({
    url: '/api/reception_list',
    method: 'POST',
    data,
  })
}
// 开始接诊
export function receiveBegin(data) {
  return request({
    url: '/api/receive_begin',
    method: 'POST',
    data,
  })
}
// 结束接诊
export function receiveEnd(data) {
  return request({
    url: '/api/receive_end',
    method: 'POST',
    data,
  })
}
// 手动上课
export function makeSingleCourseTask(data) {
  return request({
    url: '/api/make_course_task',
    method: 'POST',
    data,
  })
}

// 上课记录 恢复
export function courseRecovery(data) {
  return request({
    url: '/api/course_recovery',
    method: 'POST',
    data,
  })
}

// 排课检测
export function courseCheck(data) {
  return request({
    url: '/api/course_check',
    method: 'POST',
    data,
  })
}

// 接诊列表
export function reciveReceptionList(data) {
  return request({
    url: '/api/recive_reception_list',
    method: 'POST',
    data,
  })
}

// 上课记录导出
export function courseConsumeExport(data) {
  return request({
    url: '/api/course_consume_export',
    method: 'POST',
    data,
  })
}

// 上课记录导出列表
export function courseConsumeLog(data) {
  return request({
    url: '/api/export/course_consume_log',
    method: 'POST',
    data,
  })
}

// course_filter
export function courseFilter() {
  return request({
    url: '/api/course_filter',
    method: 'GET',
  })
}

export function cancelCourseException(data) {
  return request({
    url: '/api/cancel_course_exception',
    method: 'POST',
    data,
  })
}

// 停止上课
export function coursePause(data) {
  return request({
    url: '/api/course_pause',
    method: 'POST',
    data,
  })
}

// 接诊详情
export function getTreatmentDetail(data) {
  return request({
    url: '/api/get_treatment_detail',
    method: 'POST',
    data,
  })
}

//
export function report(data) {
  return request({
    url: '/api/receive/report',
    method: 'POST',
    data,
  })
}

// 接诊详情
export function saveHealthRecord(data) {
  return request({
    url: '/api/save_treatment_records',
    method: 'POST',
    data,
  })
}

export function therapy(data) {
  return request({
    url: '/api/receive/therapy',
    method: 'POST',
    data,
  })
}

export function treatment_records(data) {
  return request({
    url: '/api/receive/treatment_records',
    method: 'POST',
    data,
  })
}

export function advice(data) {
  return request({
    url: '/api/receive/advice',
    method: 'POST',
    data,
  })
}

export function saveAdvice(data) {
  return request({
    url: '/api/save_advice',
    method: 'POST',
    data,
  })
}

export function saveReport(data) {
  return request({
    url: '/api/consume/add_report',
    method: 'POST',
    data,
  })
}

export function saveTherapy(data) {
  return request({
    url: '/api/save_therapy',
    method: 'POST',
    data,
  })
}

export function delTherapy(data) {
  return request({
    url: '/api/del_therapy',
    method: 'POST',
    data,
  })
}

export function delReport(data) {
  return request({
    url: '/api/del_report',
    method: 'POST',
    data,
  })
}

export function courseExceptionBatch(data) {
  return request({
    url: '/api/course_exception_batch',
    method: 'POST',
    data,
  })
}

export function cancelCourseExceptionBatch(data) {
  return request({
    url: '/api/cancel_course_exception_batch',
    method: 'POST',
    data,
  })
}
// 课程表
export function courseTable(data) {
  return request({
    url: '/api/course_table',
    method: 'POST',
    data,
  })
}
